package com.lgt_enterprise_android.utils

import android.content.Context
import com.alibaba.fastjson.JSONObject
import com.lgt_enterprise_android.Constant

public class HttpManagerKt{
    companion object{
       suspend fun login(context:Context,phoneNum:String,smsCode:String,appType:String,accoutType:String):JSONObject?{
            val url=Constant.URL+"api/login?phone_num="+phoneNum+"&sms_code="+smsCode+"&app_type="+appType+"&account_type="+accoutType;


            var ret=BasicHttpKt.getExec(context,url);


            return ret as? JSONObject;
        }

    }
}